package org.jackysoft.entity;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.apache.struts2.json.annotations.JSON;
import org.jackysoft.entity.AbstractEntity;
import org.jackysoft.entity.User;
import org.jackysoft.util.MySqlSchema;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@Table(schema=MySqlSchema.Identifyedbase)
public class UserSetting extends AbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1862778019078825035L;
	private String homeUrl;
	private boolean showHome=false;
    private User owner;
	
	public String getHomeUrl() {
		return homeUrl;
	}

	public void setHomeUrl(String homeUrl) {
		this.homeUrl = homeUrl;
	}

	public boolean isShowHome() {
		return showHome;
	}

	public void setShowHome(boolean showHome) {
		this.showHome = showHome;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}

	@OneToOne
	@JSON(serialize=false)
	public User getOwner() {
		return owner;
	}

}